package com.wkk.authorization.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wkk.authorization.entity.UmsRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : WangKeKe
 * @date : 2020/10/5 12:32
 * Description : 角色持久层接口
 */


public interface UmsRoleMapper extends BaseMapper<UmsRole> {
    /**
     * 获取某用户的角色
     *
     * @param userId 用户ID
     * @return 角色集合
     */
    List<String> queryUserRoles(@Param("userId") String userId);
}
